import {StrictMode} from 'react'
import reactDOM from 'react-dom'
import App from './App.jsx'

import 'antd/dist/antd.css'
import {BrowserRouter, Route, Switch} from 'react-router-dom'

reactDOM.render(
    <StrictMode>
        <BrowserRouter>
            {/*使用Switch防止匹配多个路由*/}
            <Switch>
                <Route path="/" component={App}/>
            </Switch>
        </BrowserRouter>
    </StrictMode>,
    document.getElementById('root'))